﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Framework.LogServices
{
    /// <summary>
    /// 日志服务接口
    /// </summary>
    public interface ILoggingServices
    {
        /// <summary>
        /// 记录日志
        /// </summary>
        /// <param name="logGroup">日志分组</param>
        /// <param name="logTitle">日志标题</param>
        /// <param name="logLeve">日志等级</param>
        /// <param name="logMsg">日志信息</param>
        /// <param name="ex">异常信息</param>
        public void WriteLog(string logGroup, string logTitle, string logLeve, string logMsg, Exception ex = null);

        /// <summary>
        /// 记录信息日志
        /// </summary>
        /// <param name="logGroup">日志分组</param>
        /// <param name="logTitle">日志标题</param>
        /// <param name="logMsg">日志信息</param>
        public void WriteInfoLog(string logGroup, string logTitle, string logMsg);

        /// <summary>
        /// 记录告警日志
        /// </summary>
        /// <param name="logGroup">日志分组</param>
        /// <param name="logTitle">日志标题</param>
        /// <param name="logMsg">日志信息</param>
        public void WriteWarraingLog(string logGroup, string logTitle, string logMsg);

        /// <summary>
        /// 记录异常日志
        /// </summary>
        /// <param name="logGroup">日志分组</param>
        /// <param name="logTitle">日志标题</param>
        /// <param name="logMsg">日志信息</param>
        /// <param name="ex">异常信息</param>
        public void WriteErrorLog(string logGroup, string logTitle, string logMsg, Exception ex = null);
    }
}
